package com.xdb.sqlparser.dialect.mysql.ast.statement;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.ast.SQLName;
import com.xdb.sqlparser.dialect.mysql.visitor.MySqlASTVisitor;

public class MySqlPrepareStatement extends MySqlStatementImpl {

	private SQLName name;
	private SQLExpr from;

	public MySqlPrepareStatement() {
	}

	public MySqlPrepareStatement(SQLName name, SQLExpr from) {
		this.name = name;
		this.from = from;
	}

	public SQLName getName() {
		return name;
	}

	public void setName(SQLName name) {
		this.name = name;
	}

	public SQLExpr getFrom() {
		return from;
	}

	public void setFrom(SQLExpr from) {
		this.from = from;
	}

	public void accept0(MySqlASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, name);
			acceptChild(visitor, from);
		}
		visitor.endVisit(this);
	}
}
